package cn.stylefeng.guns.modular.basic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * <p>
 * 运营部表（原系统：分公司表）
 * </p>
 *
 * @author zhucx
 * @since 2019-06-21
 */
@TableName("basic_operate")
@Data
public class BasicOperate implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 运营部名称
     */
    @TableField("operate_name")
    private String operateName;

    /**
     * 简称
     */
    @TableField("abbreviation")
    private String abbreviation;

    /**
     * 联系人
     */
    @TableField("operate_contacts")
    private String operateContacts;

    /**
     * 电话
     */
    @TableField("operate_tel")
    private String operateTel;

    /**
     * 邮箱
     */
    @TableField("operate_emall")
    private String operateEmall;

    /**
     * 所属省份
     */
    @TableField("operate_provinces")
    private String operateProvinces;

    /**
     * 所在城市
     */
    @TableField("operate_ciywhere")
    private String operateCiywhere;

    /**
     * 开户行
     */
    @TableField("operate_bank")
    private String operateBank;

    /**
     * 银行账号
     */
    @TableField("operate_bankaccount")
    private String operateBankaccount;

    /**
     * 社会统一信用代码
     */
    @TableField("operate_creditcode")
    private String operateCreditcode;

    /**
     * 地址
     */
    @TableField("operate_address")
    private String operateAddress;

    /**
     * 备注
     */
    @TableField("operate_notes")
    private String operateNotes;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 部门名称
     */
    @TableField("dept_name")
    private String deptName;

    /**
     * 核算主体id
     */
    @TableField("co_id")
    private Long coId;

    /**
     * 核算主体
     */
    @TableField("co_name")
    private String coName;

    /**
     * 是否计算每单成本
     */
    @TableField("each_order_cost")
    private String eachOrderCost;

    /**
     * 校验围栏
     */
    @TableField("check_wl")
    private String checkWl;

    /**
     * 电脑端执行
     */
    @TableField("tms_pc")
    private String tmsPc;

    /**
     * 司机签到
     */
    @TableField("qd_driver")
    private String qdDriver;

    /**
     * 是否计算运费
     */
    @TableField("calculate_shipping_cost")
    private String calculateShippingCost;

    /**
     * 扫码装车
     */
    @TableField("scan_dress")
    private String scanDress;

    @Override
    public String toString() {
        return "BasicOperate{" +
                "id=" + id +
                ", status='" + status + '\'' +
                ", operateName='" + operateName + '\'' +
                ", abbreviation='" + abbreviation + '\'' +
                ", operateContacts='" + operateContacts + '\'' +
                ", operateTel='" + operateTel + '\'' +
                ", operateEmall='" + operateEmall + '\'' +
                ", operateProvinces='" + operateProvinces + '\'' +
                ", operateCiywhere='" + operateCiywhere + '\'' +
                ", operateBank='" + operateBank + '\'' +
                ", operateBankaccount='" + operateBankaccount + '\'' +
                ", operateCreditcode='" + operateCreditcode + '\'' +
                ", operateAddress='" + operateAddress + '\'' +
                ", operateNotes='" + operateNotes + '\'' +
                ", version=" + version +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createUser=" + createUser +
                ", updateUser=" + updateUser +
                ", deliverId=" + deliverId +
                ", deptId=" + deptId +
                ", coId=" + coId +
                ", deptName='" + deptName + '\'' +
                ", coName='" + coName + '\'' +
                '}';
    }
}
